package com.ynunicom.dc.dingdingcontractapp.entity;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author: jinye.Bai
 * @date: 2020/6/3 14:46
 */
@Data
public class ContractEntity implements Serializable {


    private static final long serialVersionUID = -7279289214794634731L;

    private String path;

    @NotBlank
    private String type;

    @NotNull
    private double money;

    @NotNull
    private long endDate;

    private String disc;

    private String name;

    public ContractEntity(String type,double money,long endDate,String disc,String name){
        this.type = type;
        this.money = money;
        this.endDate = endDate;
        this.disc = disc;
        this.name = name;
    }
}
